use XEN_SYSCTL_SCHEDOP_* for sysctl operation checks
authorJuergen Gross <jgross@suse.com>
Wed, 24 Feb 2016 11:05:58 +0000 (12:05 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 24 Feb 2016 11:05:58 +0000 (12:05 +0100)
commit140cbb69c15e0cc6469121af4aaa53f462f63313
treefd71480085978ed4e832840c81c9cd1ada4a8702
parentd0575cc51d6c50da4ea06062e4d519e7c60a1f40
use XEN_SYSCTL_SCHEDOP_* for sysctl operation checks

In flask_sysctl_scheduler_op() and sched_adjust_global() the test for
the desired operation is done with the wrong constants. While the
values are correct, the names are not.

Correct the error message for the case of an unknown operation in
flask_sysctl_scheduler_op(), too.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/common/schedule.c
xen/xsm/flask/hooks.c